<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>错误页面</title>
    <style>

        .wrap{
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .t0{
            line-height: 4em;
            color: #666;
            text-align: center;
            font-size: 4.4vw;
            width: 100vw;
        }

        .actions{
            text-align: center;
        }

        .actions a{
            text-align: center;
            text-decoration: none;
            color: #ff7a1e;
            font-size: 4vw;
            line-height: 2em;
            display: inline-block;
            padding: 0 2em;
            border-radius: 8vw;
            border: 1px solid #ff7a1e;
        }

    </style>

</head>
<body>

    <div class="wrap">
        <div class="t0">
            网络异常，请检查网络配置
        </div>
        <div class="actions">
            <a href="javascript:;" id="reload-btn">重新加载</a>
        </div>
    </div>




    <script src="../jquery.min.js"></script>
    <script src="../jssdk.js"></script>

    <script>
        $(function(){
            var getParam = function(name){
                const reg = /[\?|&|#]/g;
                var ps = {};
                var ts = location.search.split(reg);
                for(var i in ts){
                    var a = ts[i];
                    if(!a) continue;
                    var ss = a.split('=');
                    ps[ss[0]] = decodeURIComponent(ss[1]);
                }
                return ps[name];
            }

            window.xphone.onPageReady(location.href, function(){

            }, function(){

            });

            $('#reload-btn').click(function(){
                var target = getParam('target');
                console.log('Reload :'+target);
                window.location.replace(target);
            });

        });

    </script>

</body>
</html>